package ro.cityprojects.adminloc.entities;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import java.util.Set;

/**
 * ReportTypes class
 *
 * @author bogdan.solga
 *
 * Date: 13.06.2013, time: 17:47
 */
@javax.persistence.Table(name = "REPORT_TYPES")
@Entity
public class ReportTypes {
    @Id
    @javax.persistence.Column(name = "REPORT_TYPE_ID", nullable = false, insertable = true, updatable = true, length = 0, precision = -127)
    private Integer reportTypeId;

    public Integer getReportTypeId() {
        return reportTypeId;
    }

    public void setReportTypeId(Integer reportTypeId) {
        this.reportTypeId = reportTypeId;
    }

    @javax.persistence.Column(name = "TYPE", nullable = false, insertable = true, updatable = true, length = 32, precision = 0)
    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @OneToMany(mappedBy = "reportTypesByReportType")
    private Set<Report> reportsByReportTypeId;

    public Set<Report> getReportsByReportTypeId() {
        return reportsByReportTypeId;
    }

    public void setReportsByReportTypeId(Set<Report> reportsByReportTypeId) {
        this.reportsByReportTypeId = reportsByReportTypeId;
    }
}
